package generator.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @TableName t_premission
 */
@TableName(value ="t_premission")
public class Premission implements Serializable {
    /**
     * 主键，自增
     */
    @TableId(type = IdType.AUTO)
    private Integer premissionId;

    /**
     * 角色ID
     */
    private Integer premissionRoleId;

    /**
     * 有哪些权限(删改)
     */
    private String premissionNo;

    /**
     * 
     */
    private String premissionCreateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 主键，自增
     */
    public Integer getPremissionId() {
        return premissionId;
    }

    /**
     * 主键，自增
     */
    public void setPremissionId(Integer premissionId) {
        this.premissionId = premissionId;
    }

    /**
     * 角色ID
     */
    public Integer getPremissionRoleId() {
        return premissionRoleId;
    }

    /**
     * 角色ID
     */
    public void setPremissionRoleId(Integer premissionRoleId) {
        this.premissionRoleId = premissionRoleId;
    }

    /**
     * 有哪些权限(删改)
     */
    public String getPremissionNo() {
        return premissionNo;
    }

    /**
     * 有哪些权限(删改)
     */
    public void setPremissionNo(String premissionNo) {
        this.premissionNo = premissionNo;
    }

    /**
     * 
     */
    public String getPremissionCreateTime() {
        return premissionCreateTime;
    }

    /**
     * 
     */
    public void setPremissionCreateTime(String premissionCreateTime) {
        this.premissionCreateTime = premissionCreateTime;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Premission other = (Premission) that;
        return (this.getPremissionId() == null ? other.getPremissionId() == null : this.getPremissionId().equals(other.getPremissionId()))
            && (this.getPremissionRoleId() == null ? other.getPremissionRoleId() == null : this.getPremissionRoleId().equals(other.getPremissionRoleId()))
            && (this.getPremissionNo() == null ? other.getPremissionNo() == null : this.getPremissionNo().equals(other.getPremissionNo()))
            && (this.getPremissionCreateTime() == null ? other.getPremissionCreateTime() == null : this.getPremissionCreateTime().equals(other.getPremissionCreateTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getPremissionId() == null) ? 0 : getPremissionId().hashCode());
        result = prime * result + ((getPremissionRoleId() == null) ? 0 : getPremissionRoleId().hashCode());
        result = prime * result + ((getPremissionNo() == null) ? 0 : getPremissionNo().hashCode());
        result = prime * result + ((getPremissionCreateTime() == null) ? 0 : getPremissionCreateTime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", premissionId=").append(premissionId);
        sb.append(", premissionRoleId=").append(premissionRoleId);
        sb.append(", premissionNo=").append(premissionNo);
        sb.append(", premissionCreateTime=").append(premissionCreateTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}